﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Threading.Tasks;

namespace teavch.Util.RssFeedator
{
	public abstract class RssAttribute
	{

		public static implicit operator string( RssAttribute rssa )
		{
			return rssa.Text;
		}

		public string Text { get; set; }
		public string Tag { get; set; }

	}

	public class Title : RssAttribute
	{
		public Title()
		{
			this.Tag = "title";
		}
	}

	public class Link : RssAttribute
	{
		public Link()
		{
			this.Tag = "link";
		}
	}

	public class Description : RssAttribute
	{
		public Description()
		{
			this.Tag = "description";
		}
	}

	public class Author : RssAttribute
	{
		public Author()
		{
			this.Tag = "author";
		}
	}

	public class PublishDate : RssAttribute
	{
		public PublishDate()
		{
			this.Tag = "pubDate";
		}
	}

	public class Guid : RssAttribute
	{
		public bool IsPermanentLink { get; set; }
		public Guid()
		{
			this.Tag = "guid";
		}
	}
}
